package com.wn.naturalbiorhythms;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.app.Application;

public class NaturalBiorhythmsApplication extends Application {

	private static List<Activity> activities = new ArrayList<Activity>();
	
	public static void addActivity(Activity ac){
		activities.add(ac);
	}
	
	public static void exitNaturalBiorhythmsApplication(){
		for (Activity ac : activities) {
			ac.finish();
		}
		activities.clear();
		activities = null;
		System.exit(0);
	}
}
